﻿using DataAccessObject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BUSINESS
{
    public static class HocSinhBUS
    {
        private static HocSinhDAO dao = new HocSinhDAO();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static List<HOCSINH> getAllHocSinhNoneMaHocSinh(NAMHOC namhoc)
        {
            return dao.getAllHocSinhNoneMaHocSinh(namhoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="hocsinh"></param>
        /// <returns></returns>
        public static string updateHocSinh(HOCSINH hocsinh)
        {
            return dao.udpateHocSinh(hocsinh);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="hocsinh"></param>
        /// <param name="lophoc"></param>
        /// <returns></returns>
        public static string InsertHocSinh(HOCSINH hocsinh, LOPHOC lophoc)
        {
            return dao.insertHocSinh(hocsinh, lophoc);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="HOCSINH"></param>
        public static void deleteHocSinh(HOCSINH hocsinh)
        {
            dao.deleteHocSinh(hocsinh);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="lophoc"></param>
        /// <returns></returns>
        public static List<HOCSINH> getAllHocSinhByLopHoc(LOPHOC lophoc)
        {
            return dao.getAllHocSinhByLopHoc(lophoc);
        }
    }
}
